#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>

int main()
{
	int day;
	scanf("%d", &day);
	if (day == 1 || day == 3 || day == 5)
		printf("NO");
	else
		printf("YES");
	return 0;
}